import * as types from './types'

export const mutations = {
  [types.HOME_DATA](state, {data}) {
    state.home_data = data
  },
  [types.HEADER_NICKNAME](state, {data}) {
    state.header_nickName = data
  },
  [types.HEADER_CARTCOUNT](state, {data}) {
    state.header_cartCount = data
  },
  updateCartCount(state,cartCount) {
    state.header_cartCount += cartCount
  }
}
